#ifndef DISPLAYWIDGET_H
#define DISPLAYWIDGET_H

#include <QtOpenGL/QGLWidget>
#include <QtCore/QTimer>
#include "SpaceExpWidget.h"

class DisplayWidget:public QGLWidget {
        Q_OBJECT

        public:
                DisplayWidget(QWidget *parent = 0, SpaceExpWidget *spaceExpWidget =0);
                ~DisplayWidget();

                float rotX, rotY, rotZ; //i want access these variable so public
                void resizeGL(int width, int height);
                short int col;

                SpaceExpWidget *displayDevice;


        public slots:
                void updateImage();


        signals:


        protected:
                void initializeGL();
                void paintGL();

private:
                QTimer *refresh_timer;
};




#endif // DISPLAYWIDGET_H
